<?php

namespace models;

class AuthGroup extends BaseModel {
    protected $logName = '权限组';

    protected $auto = [
        ['create_time', 'time', self::MODEL_INSERT, 'function'],
    ];

    public function getGroupCount($group) {
        $model = new AuthInfo();

        return $model->where(['group_id' => $group])->count();
    }

}
